home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 7.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 73 74 65 76 65 40 61 |piled by| steve@a|
|00000020| 6c 74 61 69 72 2e 78 65 | 6d 61 63 73 2e 6f 72 67 |ltair.xe|macs.org|
|00000030| 20 6f 6e 20 54 68 75 20 | 4e 6f 76 20 32 30 20 31 | on Thu |Nov 20 1|
|00000040| 37 3a 34 30 3a 33 37 20 | 31 39 39 37 0a 3b 3b 3b |7:40:37 |1997.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 78 65 6d 61 63 73 2f | 32 30 2e 33 2f 78 65 6d |/xemacs/|20.3/xem|
|00000070| 61 63 73 2d 32 30 2e 33 | 2f 6c 69 73 70 2f 6d 75 |acs-20.3|/lisp/mu|
|00000080| 6c 65 2f 6d 75 6c 65 2d | 70 72 6f 63 65 73 73 2e |le/mule-|process.|
|00000090| 65 6c 0a 3b 3b 3b 20 65 | 6d 61 63 73 20 76 65 72 |el.;;; e|macs ver|
|000000a0| 73 69 6f 6e 20 32 30 2e | 33 20 22 56 61 74 69 63 |sion 20.|3 "Vatic|
|000000b0| 61 6e 20 43 69 74 79 22 | 20 58 45 6d 61 63 73 20 |an City"| XEmacs |
|000000c0| 20 4c 75 63 69 64 2e 0a | 3b 3b 3b 20 62 79 74 65 | Lucid..|;;; byte|
|000000d0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 32 2e 32 |comp ver|sion 2.2|
|000000e0| 35 20 58 45 6d 61 63 73 | 3b 20 32 32 2d 4d 61 72 |5 XEmacs|; 22-Mar|
|000000f0| 2d 39 36 2e 0a 3b 3b 3b | 20 6f 70 74 69 6d 69 7a |-96..;;;| optimiz|
|00000100| 61 74 69 6f 6e 20 69 73 | 20 6f 6e 2e 0a 3b 3b 3b |ation is| on..;;;|
|00000110| 20 74 68 69 73 20 66 69 | 6c 65 20 75 73 65 73 20 | this fi|le uses |
|00000120| 6f 70 63 6f 64 65 73 20 | 77 68 69 63 68 20 64 6f |opcodes |which do|
|00000130| 20 6e 6f 74 20 65 78 69 | 73 74 20 69 6e 20 45 6d | not exi|st in Em|
|00000140| 61 63 73 20 31 39 2e 0a | 0a 28 69 66 20 28 61 6e |acs 19..|.(if (an|
|00000150| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 6d 61 63 73 |d (bound|p 'emacs|
|00000160| 2d 76 65 72 73 69 6f 6e | 29 0a 09 20 28 6f 72 20 |-version|).. (or |
|00000170| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 70 |(and (bo|undp 'ep|
|00000180| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 20 65 70 |och::ver|sion) ep|
|00000190| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 0a 09 20 |och::ver|sion).. |
|000001a0| 20 20 20 20 28 73 74 72 | 69 6e 67 2d 6c 65 73 73 | (str|ing-less|
|000001b0| 70 20 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 20 |p emacs-|version |
|000001c0| 22 32 30 22 29 29 29 0a | 20 20 20 20 28 65 72 72 |"20"))).| (err|
|000001d0| 6f 72 20 22 60 6d 75 6c | 65 2d 70 72 6f 63 65 73 |or "`mul|e-proces|
|000001e0| 73 2e 65 6c 27 20 77 61 | 73 20 63 6f 6d 70 69 6c |s.el' wa|s compil|
|000001f0| 65 64 20 66 6f 72 20 45 | 6d 61 63 73 20 32 30 22 |ed for E|macs 20"|
|00000200| 29 29 0a 0a 28 6f 72 20 | 28 62 6f 75 6e 64 70 20 |))..(or |(boundp |
|00000210| 27 63 75 72 72 65 6e 74 | 2d 6c 6f 61 64 2d 6c 69 |'current|-load-li|
|00000220| 73 74 29 20 28 73 65 74 | 71 20 63 75 72 72 65 6e |st) (set|q curren|
|00000230| 74 2d 6c 6f 61 64 2d 6c | 69 73 74 20 6e 69 6c 29 |t-load-l|ist nil)|
|00000240| 29 0a 0a 0a 23 40 36 30 | 30 20 41 6c 69 73 74 20 |)...#@60|0 Alist |
|00000250| 74 6f 20 64 65 63 69 64 | 65 20 61 20 63 6f 64 69 |to decid|e a codi|
|00000260| 6e 67 20 73 79 73 74 65 | 6d 20 74 6f 20 75 73 65 |ng syste|m to use|
|00000270| 20 66 6f 72 20 61 20 70 | 72 6f 63 65 73 73 20 49 | for a p|rocess I|
|00000280| 2f 4f 20 6f 70 65 72 61 | 74 69 6f 6e 2e 0a 54 68 |/O opera|tion..Th|
|00000290| 65 20 66 6f 72 6d 61 74 | 20 69 73 20 28 28 50 41 |e format| is ((PA|
|000002a0| 54 54 45 52 4e 20 2e 20 | 56 41 4c 29 20 2e 2e 2e |TTERN . |VAL) ...|
|000002b0| 29 2c 0a 77 68 65 72 65 | 20 50 41 54 54 45 52 4e |),.where| PATTERN|
|000002c0| 20 69 73 20 61 20 72 65 | 67 75 6c 61 72 20 65 78 | is a re|gular ex|
|000002d0| 70 72 65 73 73 69 6f 6e | 20 6d 61 74 63 68 69 6e |pression| matchin|
|000002e0| 67 20 61 20 70 72 6f 67 | 72 61 6d 20 6e 61 6d 65 |g a prog|ram name|
|000002f0| 2c 0a 56 41 4c 20 69 73 | 20 61 20 63 6f 64 69 6e |,.VAL is| a codin|
|00000300| 67 20 73 79 73 74 65 6d | 2c 20 61 20 63 6f 6e 73 |g system|, a cons|
|00000310| 20 6f 66 20 63 6f 64 69 | 6e 67 20 73 79 73 74 65 | of codi|ng syste|
|00000320| 6d 73 2c 20 6f 72 20 61 | 20 66 75 6e 63 74 69 6f |ms, or a| functio|
|00000330| 6e 20 73 79 6d 62 6f 6c | 2e 0a 49 66 20 56 41 4c |n symbol|..If VAL|
|00000340| 20 69 73 20 61 20 63 6f | 64 69 6e 67 20 73 79 73 | is a co|ding sys|
|00000350| 74 65 6d 2c 20 69 74 20 | 69 73 20 75 73 65 64 20 |tem, it |is used |
|00000360| 66 6f 72 20 62 6f 74 68 | 20 64 65 63 6f 64 69 6e |for both| decodin|
|00000370| 67 20 77 68 61 74 20 72 | 65 63 65 69 76 65 64 0a |g what r|eceived.|
|00000380| 66 72 6f 6d 20 74 68 65 | 20 70 72 6f 67 72 61 6d |from the| program|
|00000390| 20 61 6e 64 20 65 6e 63 | 6f 64 69 6e 67 20 77 68 | and enc|oding wh|
|000003a0| 61 74 20 73 65 6e 74 20 | 74 6f 20 74 68 65 20 70 |at sent |to the p|
|000003b0| 72 6f 67 72 61 6d 2e 0a | 49 66 20 56 41 4c 20 69 |rogram..|If VAL i|
|000003c0| 73 20 61 20 63 6f 6e 73 | 20 6f 66 20 63 6f 64 69 |s a cons| of codi|
|000003d0| 6e 67 20 73 79 73 74 65 | 6d 73 2c 20 74 68 65 20 |ng syste|ms, the |
|000003e0| 63 61 72 20 70 61 72 74 | 20 69 73 20 75 73 65 64 |car part| is used|
|000003f0| 20 66 6f 72 20 64 65 63 | 6f 64 69 6e 67 2c 0a 61 | for dec|oding,.a|
|00000400| 6e 64 20 74 68 65 20 63 | 64 72 20 70 61 72 74 20 |nd the c|dr part |
|00000410| 69 73 20 75 73 65 64 20 | 66 6f 72 20 65 6e 63 6f |is used |for enco|
|00000420| 64 69 6e 67 2e 0a 49 66 | 20 56 41 4c 20 69 73 20 |ding..If| VAL is |
|00000430| 61 20 66 75 6e 63 74 69 | 6f 6e 20 73 79 6d 62 6f |a functi|on symbo|
|00000440| 6c 2c 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |l, the f|unction |
|00000450| 6d 75 73 74 20 72 65 74 | 75 72 6e 20 61 20 63 6f |must ret|urn a co|
|00000460| 64 69 6e 67 20 73 79 73 | 74 65 6d 0a 6f 72 20 61 |ding sys|tem.or a|
|00000470| 20 63 6f 6e 73 20 6f 66 | 20 63 6f 64 69 6e 67 20 | cons of| coding |
|00000480| 73 79 73 74 65 6d 73 20 | 77 68 69 63 68 20 61 72 |systems |which ar|
|00000490| 65 20 75 73 65 64 20 61 | 73 20 61 62 6f 76 65 2e |e used a|s above.|
|000004a0| 1f 0a 28 64 65 66 76 61 | 72 20 70 72 6f 63 65 73 |..(defva|r proces|
|000004b0| 73 2d 63 6f 64 69 6e 67 | 2d 73 79 73 74 65 6d 2d |s-coding|-system-|
|000004c0| 61 6c 69 73 74 20 6e 69 | 6c 20 28 23 24 20 2e 20 |alist ni|l (#$ . |
|000004d0| 35 38 36 29 29 0a 23 40 | 39 36 31 20 43 61 6c 6c |586)).#@|961 Call|
|000004e0| 20 50 52 4f 47 52 41 4d | 20 73 79 6e 63 68 72 6f | PROGRAM| synchro|
|000004f0| 6e 6f 75 73 6c 79 20 69 | 6e 20 73 65 70 61 72 61 |nously i|n separa|
|00000500| 74 65 20 70 72 6f 63 65 | 73 73 2e 0a 54 68 65 20 |te proce|ss..The |
|00000510| 70 72 6f 67 72 61 6d 27 | 73 20 69 6e 70 75 74 20 |program'|s input |
|00000520| 63 6f 6d 65 73 20 66 72 | 6f 6d 20 66 69 6c 65 20 |comes fr|om file |
|00000530| 49 4e 46 49 4c 45 20 28 | 6e 69 6c 20 6d 65 61 6e |INFILE (|nil mean|
|00000540| 73 20 60 2f 64 65 76 2f | 6e 75 6c 6c 27 29 2e 0a |s `/dev/|null')..|
|00000550| 49 6e 73 65 72 74 20 6f | 75 74 70 75 74 20 69 6e |Insert o|utput in|
|00000560| 20 42 55 46 46 45 52 20 | 62 65 66 6f 72 65 20 70 | BUFFER |before p|
|00000570| 6f 69 6e 74 3b 20 74 20 | 6d 65 61 6e 73 20 63 75 |oint; t |means cu|
|00000580| 72 72 65 6e 74 20 62 75 | 66 66 65 72 3b 0a 20 6e |rrent bu|ffer;. n|
|00000590| 69 6c 20 66 6f 72 20 42 | 55 46 46 45 52 20 6d 65 |il for B|UFFER me|
|000005a0| 61 6e 73 20 64 69 73 63 | 61 72 64 20 69 74 3b 20 |ans disc|ard it; |
|000005b0| 30 20 6d 65 61 6e 73 20 | 64 69 73 63 61 72 64 20 |0 means |discard |
|000005c0| 61 6e 64 20 64 6f 6e 27 | 74 20 77 61 69 74 2e 0a |and don'|t wait..|
|000005d0| 42 55 46 46 45 52 20 63 | 61 6e 20 61 6c 73 6f 20 |BUFFER c|an also |
|000005e0| 68 61 76 65 20 74 68 65 | 20 66 6f 72 6d 20 28 52 |have the| form (R|
|000005f0| 45 41 4c 2d 42 55 46 46 | 45 52 20 53 54 44 45 52 |EAL-BUFF|ER STDER|
|00000600| 52 2d 46 49 4c 45 29 3b | 20 69 6e 20 74 68 61 74 |R-FILE);| in that|
|00000610| 20 63 61 73 65 2c 0a 52 | 45 41 4c 2d 42 55 46 46 | case,.R|EAL-BUFF|
|00000620| 45 52 20 73 61 79 73 20 | 77 68 61 74 20 74 6f 20 |ER says |what to |
|00000630| 64 6f 20 77 69 74 68 20 | 73 74 61 6e 64 61 72 64 |do with |standard|
|00000640| 20 6f 75 74 70 75 74 2c | 20 61 73 20 61 62 6f 76 | output,| as abov|
|00000650| 65 2c 0a 77 68 69 6c 65 | 20 53 54 44 45 52 52 2d |e,.while| STDERR-|
|00000660| 46 49 4c 45 20 73 61 79 | 73 20 77 68 61 74 20 74 |FILE say|s what t|
|00000670| 6f 20 64 6f 20 77 69 74 | 68 20 73 74 61 6e 64 61 |o do wit|h standa|
|00000680| 72 64 20 65 72 72 6f 72 | 20 69 6e 20 74 68 65 20 |rd error| in the |
|00000690| 63 68 69 6c 64 2e 0a 53 | 54 44 45 52 52 2d 46 49 |child..S|TDERR-FI|
|000006a0| 4c 45 20 6d 61 79 20 62 | 65 20 6e 69 6c 20 28 64 |LE may b|e nil (d|
|000006b0| 69 73 63 61 72 64 20 73 | 74 61 6e 64 61 72 64 20 |iscard s|tandard |
|000006c0| 65 72 72 6f 72 20 6f 75 | 74 70 75 74 29 2c 0a 74 |error ou|tput),.t|
|000006d0| 20 28 6d 69 78 20 69 74 | 20 77 69 74 68 20 6f 72 | (mix it| with or|
|000006e0| 64 69 6e 61 72 79 20 6f | 75 74 70 75 74 29 2c 20 |dinary o|utput), |
|000006f0| 6f 72 20 61 20 66 69 6c | 65 20 6e 61 6d 65 20 73 |or a fil|e name s|
|00000700| 74 72 69 6e 67 2e 0a 0a | 46 6f 75 72 74 68 20 61 |tring...|Fourth a|
|00000710| 72 67 20 44 49 53 50 4c | 41 59 50 20 6e 6f 6e 2d |rg DISPL|AYP non-|
|00000720| 6e 69 6c 20 6d 65 61 6e | 73 20 72 65 64 69 73 70 |nil mean|s redisp|
|00000730| 6c 61 79 20 62 75 66 66 | 65 72 20 61 73 20 6f 75 |lay buff|er as ou|
|00000740| 74 70 75 74 20 69 73 20 | 69 6e 73 65 72 74 65 64 |tput is |inserted|
|00000750| 2e 0a 52 65 6d 61 69 6e | 69 6e 67 20 61 72 67 75 |..Remain|ing argu|
|00000760| 6d 65 6e 74 73 20 61 72 | 65 20 73 74 72 69 6e 67 |ments ar|e string|
|00000770| 73 20 70 61 73 73 65 64 | 20 61 73 20 63 6f 6d 6d |s passed| as comm|
|00000780| 61 6e 64 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f |and argu|ments to|
|00000790| 20 50 52 4f 47 52 41 4d | 2e 0a 0a 49 66 20 42 55 | PROGRAM|...If BU|
|000007a0| 46 46 45 52 20 69 73 20 | 30 2c 20 60 63 61 6c 6c |FFER is |0, `call|
|000007b0| 2d 70 72 6f 63 65 73 73 | 27 20 72 65 74 75 72 6e |-process|' return|
|000007c0| 73 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 77 69 |s immedi|ately wi|
|000007d0| 74 68 20 76 61 6c 75 65 | 20 6e 69 6c 2e 0a 4f 74 |th value| nil..Ot|
|000007e0| 68 65 72 77 69 73 65 20 | 69 74 20 77 61 69 74 73 |herwise |it waits|
|000007f0| 20 66 6f 72 20 50 52 4f | 47 52 41 4d 20 74 6f 20 | for PRO|GRAM to |
|00000800| 74 65 72 6d 69 6e 61 74 | 65 20 61 6e 64 20 72 65 |terminat|e and re|
|00000810| 74 75 72 6e 73 20 61 20 | 6e 75 6d 65 72 69 63 20 |turns a |numeric |
|00000820| 65 78 69 74 20 73 74 61 | 74 75 73 0a 20 6f 72 20 |exit sta|tus. or |
|00000830| 61 20 73 69 67 6e 61 6c | 20 64 65 73 63 72 69 70 |a signal| descrip|
|00000840| 74 69 6f 6e 20 73 74 72 | 69 6e 67 2e 0a 49 66 20 |tion str|ing..If |
|00000850| 79 6f 75 20 71 75 69 74 | 2c 20 74 68 65 20 70 72 |you quit|, the pr|
|00000860| 6f 63 65 73 73 20 69 73 | 20 6b 69 6c 6c 65 64 20 |ocess is| killed |
|00000870| 77 69 74 68 20 53 49 47 | 49 4e 54 2c 20 6f 72 20 |with SIG|INT, or |
|00000880| 53 49 47 4b 49 4c 4c 20 | 69 66 20 79 6f 75 0a 20 |SIGKILL |if you. |
|00000890| 71 75 69 74 20 61 67 61 | 69 6e 2e 1f 0a 28 64 65 |quit aga|in...(de|
|000008a0| 66 61 6c 69 61 73 20 27 | 63 61 6c 6c 2d 70 72 6f |falias '|call-pro|
|000008b0| 63 65 73 73 20 23 5b 28 | 70 72 6f 67 72 61 6d 20 |cess #[(|program |
|000008c0| 26 6f 70 74 69 6f 6e 61 | 6c 20 69 6e 66 69 6c 65 |&optiona|l infile|
|000008d0| 20 62 75 66 66 65 72 20 | 64 69 73 70 6c 61 79 70 | buffer |displayp|
|000008e0| 20 26 72 65 73 74 20 61 | 72 67 73 29 20 22 08 ae | &rest a|rgs) "..|
|000008f0| a0 c1 1a c3 c4 8d 88 c5 | 5c 6e 21 ab 86 5c 6e c6 |........|\n!..\n.|
|00000900| 0e 07 5c 22 12 5c 6e 3a | ab 84 5c 6e 40 aa 86 c8 |..\".\n:|..\n@...|
|00000910| 5c 6e 21 ad 81 5c 6e 29 | 18 c9 ca 0e 07 0e 0b 0e |\n!..\n)|........|
|00000920| 0c 0e 0d 0e 0e 26 06 29 | 87 22 20 5b 63 6f 64 69 |.....&.)|." [codi|
|00000930| 6e 67 2d 73 79 73 74 65 | 6d 2d 66 6f 72 2d 72 65 |ng-syste|m-for-re|
|00000940| 61 64 20 6e 69 6c 20 72 | 65 74 20 66 6f 75 6e 64 |ad nil r|et found|
|00000950| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 09 c2 | (byte-c|ode "...|
|00000960| 61 1b 89 1c ab 99 c5 0c | 40 40 0e 06 5c 22 ab 8a |a.......|@@..\"..|
|00000970| c7 c8 0c 40 41 89 16 09 | 5c 22 88 0c 41 89 14 ac |...@A...|\"..A...|
|00000980| 67 2a c2 87 22 20 5b 70 | 72 6f 63 65 73 73 2d 63 |g*.." [p|rocess-c|
|00000990| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 2d 61 6c 69 |oding-sy|stem-ali|
|000009a0| 73 74 20 73 79 73 74 65 | 6d 2d 74 79 70 65 20 76 |st syste|m-type v|
|000009b0| 61 78 2d 76 6d 73 20 63 | 61 73 65 2d 66 6f 6c 64 |ax-vms c|ase-fold|
|000009c0| 2d 73 65 61 72 63 68 20 | 61 6c 69 73 74 20 73 74 |-search |alist st|
|000009d0| 72 69 6e 67 2d 6d 61 74 | 63 68 20 70 72 6f 67 72 |ring-mat|ch progr|
|000009e0| 61 6d 20 74 68 72 6f 77 | 20 66 6f 75 6e 64 20 72 |am throw| found r|
|000009f0| 65 74 5d 20 35 29 20 66 | 75 6e 63 74 69 6f 6e 70 |et] 5) f|unctionp|
|00000a00| 20 63 61 6c 6c 2d 70 72 | 6f 63 65 73 73 20 70 72 | call-pr|ocess pr|
|00000a10| 6f 67 72 61 6d 20 66 69 | 6e 64 2d 63 6f 64 69 6e |ogram fi|nd-codin|
|00000a20| 67 2d 73 79 73 74 65 6d | 20 61 70 70 6c 79 20 63 |g-system| apply c|
|00000a30| 61 6c 6c 2d 70 72 6f 63 | 65 73 73 2d 69 6e 74 65 |all-proc|ess-inte|
|00000a40| 72 6e 61 6c 20 69 6e 66 | 69 6c 65 20 62 75 66 66 |rnal inf|ile buff|
|00000a50| 65 72 20 64 69 73 70 6c | 61 79 70 20 61 72 67 73 |er displ|ayp args|
|00000a60| 5d 20 37 20 28 23 24 20 | 2e 20 31 32 34 34 29 5d |] 7 (#$ |. 1244)]|
|00000a70| 29 0a 23 40 39 37 36 20 | 53 65 6e 64 20 74 65 78 |).#@976 |Send tex|
|00000a80| 74 20 66 72 6f 6d 20 53 | 54 41 52 54 20 74 6f 20 |t from S|TART to |
|00000a90| 45 4e 44 20 74 6f 20 61 | 20 73 79 6e 63 68 72 6f |END to a| synchro|
|00000aa0| 6e 6f 75 73 20 70 72 6f | 63 65 73 73 20 72 75 6e |nous pro|cess run|
|00000ab0| 6e 69 6e 67 20 50 52 4f | 47 52 41 4d 2e 0a 44 65 |ning PRO|GRAM..De|
|00000ac0| 6c 65 74 65 20 74 68 65 | 20 74 65 78 74 20 69 66 |lete the| text if|
|00000ad0| 20 66 6f 75 72 74 68 20 | 61 72 67 20 44 45 4c 45 | fourth |arg DELE|
|00000ae0| 54 45 50 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 2e 0a |TEP is n|on-nil..|
|00000af0| 0a 49 6e 73 65 72 74 20 | 6f 75 74 70 75 74 20 69 |.Insert |output i|
|00000b00| 6e 20 42 55 46 46 45 52 | 20 62 65 66 6f 72 65 20 |n BUFFER| before |
|00000b10| 70 6f 69 6e 74 3b 20 74 | 20 6d 65 61 6e 73 20 63 |point; t| means c|
|00000b20| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 3b 0a 20 |urrent b|uffer;. |
|00000b30| 6e 69 6c 20 66 6f 72 20 | 42 55 46 46 45 52 20 6d |nil for |BUFFER m|
|00000b40| 65 61 6e 73 20 64 69 73 | 63 61 72 64 20 69 74 3b |eans dis|card it;|
|00000b50| 20 30 20 6d 65 61 6e 73 | 20 64 69 73 63 61 72 64 | 0 means| discard|
|00000b60| 20 61 6e 64 20 64 6f 6e | 27 74 20 77 61 69 74 2e | and don|'t wait.|
|00000b70| 0a 42 55 46 46 45 52 20 | 63 61 6e 20 61 6c 73 6f |.BUFFER |can also|
|00000b80| 20 68 61 76 65 20 74 68 | 65 20 66 6f 72 6d 20 28 | have th|e form (|
|00000b90| 52 45 41 4c 2d 42 55 46 | 46 45 52 20 53 54 44 45 |REAL-BUF|FER STDE|
|00000ba0| 52 52 2d 46 49 4c 45 29 | 3b 20 69 6e 20 74 68 61 |RR-FILE)|; in tha|
|00000bb0| 74 20 63 61 73 65 2c 0a | 52 45 41 4c 2d 42 55 46 |t case,.|REAL-BUF|
|00000bc0| 46 45 52 20 73 61 79 73 | 20 77 68 61 74 20 74 6f |FER says| what to|
|00000bd0| 20 64 6f 20 77 69 74 68 | 20 73 74 61 6e 64 61 72 | do with| standar|
|00000be0| 64 20 6f 75 74 70 75 74 | 2c 20 61 73 20 61 62 6f |d output|, as abo|
|00000bf0| 76 65 2c 0a 77 68 69 6c | 65 20 53 54 44 45 52 52 |ve,.whil|e STDERR|
|00000c00| 2d 46 49 4c 45 20 73 61 | 79 73 20 77 68 61 74 20 |-FILE sa|ys what |
|00000c10| 74 6f 20 64 6f 20 77 69 | 74 68 20 73 74 61 6e 64 |to do wi|th stand|
|00000c20| 61 72 64 20 65 72 72 6f | 72 20 69 6e 20 74 68 65 |ard erro|r in the|
|00000c30| 20 63 68 69 6c 64 2e 0a | 53 54 44 45 52 52 2d 46 | child..|STDERR-F|
|00000c40| 49 4c 45 20 6d 61 79 20 | 62 65 20 6e 69 6c 20 28 |ILE may |be nil (|
|00000c50| 64 69 73 63 61 72 64 20 | 73 74 61 6e 64 61 72 64 |discard |standard|
|00000c60| 20 65 72 72 6f 72 20 6f | 75 74 70 75 74 29 2c 0a | error o|utput),.|
|00000c70| 74 20 28 6d 69 78 20 69 | 74 20 77 69 74 68 20 6f |t (mix i|t with o|
|00000c80| 72 64 69 6e 61 72 79 20 | 6f 75 74 70 75 74 29 2c |rdinary |output),|
|00000c90| 20 6f 72 20 61 20 66 69 | 6c 65 20 6e 61 6d 65 20 | or a fi|le name |
|00000ca0| 73 74 72 69 6e 67 2e 0a | 0a 53 69 78 74 68 20 61 |string..|.Sixth a|
|00000cb0| 72 67 20 44 49 53 50 4c | 41 59 50 20 6e 6f 6e 2d |rg DISPL|AYP non-|
|00000cc0| 6e 69 6c 20 6d 65 61 6e | 73 20 72 65 64 69 73 70 |nil mean|s redisp|
|00000cd0| 6c 61 79 20 62 75 66 66 | 65 72 20 61 73 20 6f 75 |lay buff|er as ou|
|00000ce0| 74 70 75 74 20 69 73 20 | 69 6e 73 65 72 74 65 64 |tput is |inserted|
|00000cf0| 2e 0a 52 65 6d 61 69 6e | 69 6e 67 20 61 72 67 73 |..Remain|ing args|
|00000d00| 20 61 72 65 20 70 61 73 | 73 65 64 20 74 6f 20 50 | are pas|sed to P|
|00000d10| 52 4f 47 52 41 4d 20 61 | 74 20 73 74 61 72 74 75 |ROGRAM a|t startu|
|00000d20| 70 20 61 73 20 63 6f 6d | 6d 61 6e 64 20 61 72 67 |p as com|mand arg|
|00000d30| 73 2e 0a 0a 49 66 20 42 | 55 46 46 45 52 20 69 73 |s...If B|UFFER is|
|00000d40| 20 30 2c 20 72 65 74 75 | 72 6e 73 20 69 6d 6d 65 | 0, retu|rns imme|
|00000d50| 64 69 61 74 65 6c 79 20 | 77 69 74 68 20 76 61 6c |diately |with val|
|00000d60| 75 65 20 6e 69 6c 2e 0a | 4f 74 68 65 72 77 69 73 |ue nil..|Otherwis|
|00000d70| 65 20 77 61 69 74 73 20 | 66 6f 72 20 50 52 4f 47 |e waits |for PROG|
|00000d80| 52 41 4d 20 74 6f 20 74 | 65 72 6d 69 6e 61 74 65 |RAM to t|erminate|
|00000d90| 0a 61 6e 64 20 72 65 74 | 75 72 6e 73 20 61 20 6e |.and ret|urns a n|
|00000da0| 75 6d 65 72 69 63 20 65 | 78 69 74 20 73 74 61 74 |umeric e|xit stat|
|00000db0| 75 73 20 6f 72 20 61 20 | 73 69 67 6e 61 6c 20 64 |us or a |signal d|
|00000dc0| 65 73 63 72 69 70 74 69 | 6f 6e 20 73 74 72 69 6e |escripti|on strin|
|00000dd0| 67 2e 0a 49 66 20 79 6f | 75 20 71 75 69 74 2c 20 |g..If yo|u quit, |
|00000de0| 74 68 65 20 70 72 6f 63 | 65 73 73 20 69 73 20 66 |the proc|ess is f|
|00000df0| 69 72 73 74 20 6b 69 6c | 6c 65 64 20 77 69 74 68 |irst kil|led with|
|00000e00| 20 53 49 47 49 4e 54 2c | 20 74 68 65 6e 20 77 69 | SIGINT,| then wi|
|00000e10| 74 68 20 53 49 47 4b 49 | 4c 4c 20 69 66 0a 79 6f |th SIGKI|LL if.yo|
|00000e20| 75 20 71 75 69 74 20 61 | 67 61 69 6e 20 62 65 66 |u quit a|gain bef|
|00000e30| 6f 72 65 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |ore the |process |
|00000e40| 65 78 69 74 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |exits...|(defalia|
|00000e50| 73 20 27 63 61 6c 6c 2d | 70 72 6f 63 65 73 73 2d |s 'call-|process-|
|00000e60| 72 65 67 69 6f 6e 20 23 | 5b 28 73 74 61 72 74 20 |region #|[(start |
|00000e70| 65 6e 64 20 70 72 6f 67 | 72 61 6d 20 26 6f 70 74 |end prog|ram &opt|
|00000e80| 69 6f 6e 61 6c 20 64 65 | 6c 65 74 65 70 20 62 75 |ional de|letep bu|
|00000e90| 66 66 65 72 20 64 69 73 | 70 6c 61 79 70 20 26 72 |ffer dis|playp &r|
|00000ea0| 65 73 74 20 61 72 67 73 | 29 20 22 08 c1 61 ab 85 |est args|) "..a..|
|00000eb0| c2 c3 21 aa a0 08 c4 61 | ac 85 08 c5 61 ab 93 c2 |..!....a|....a...|
|00000ec0| c6 c7 c8 21 ae 86 c7 c9 | 21 ae 81 ca 21 cb 50 21 |...!....|!...!.P!|
|00000ed0| aa 83 c2 cc 21 1e 0d ce | 8e cf 89 1e 10 1e 11 cf |....!...|........|
|00000ee0| 1e 12 d3 d4 8d 88 d5 0e | 12 21 ab 88 0e 12 d6 0e |........|.!......|
|00000ef0| 17 5c 22 16 12 0e 12 3a | ab 8c 0e 12 40 16 11 0e |.\"....:|....@...|
|00000f00| 12 41 16 10 aa 8e d8 0e | 12 21 ab 88 0e 12 16 11 |.A......|.!......|
|00000f10| 0e 12 16 10 29 0e 19 ae | 82 0e 11 0e 1a ae 82 0e |....)...|........|
|00000f20| 10 1e 1a 1e 19 08 c4 61 | ac 85 08 c5 61 ab 92 0e |.......a|....a...|
|00000f30| 1b 1e 1c dd 0e 1e 0e 1f | 0e 0d cf e0 25 88 29 aa |........|....%.).|
|00000f40| 8b dd 0e 1e 0e 1f 0e 0d | cf e0 25 88 0e 21 ab 86 |........|..%..!..|
|00000f50| 0e 1e 0e 1f 7c 88 e2 e3 | 0e 17 0e 0d 0e 24 0e 25 |....|...|.....$.%|
|00000f60| 0e 26 26 06 2e 06 87 22 | 20 5b 73 79 73 74 65 6d |.&&...."| [system|
|00000f70| 2d 74 79 70 65 20 76 61 | 78 2d 76 6d 73 20 6d 61 |-type va|x-vms ma|
|00000f80| 6b 65 2d 74 65 6d 70 2d | 6e 61 6d 65 20 22 74 6d |ke-temp-|name "tm|
|00000f90| 70 3a 65 6d 61 63 73 22 | 20 6d 73 2d 64 6f 73 20 |p:emacs"| ms-dos |
|00000fa0| 77 69 6e 64 6f 77 73 2d | 6e 74 20 66 69 6c 65 2d |windows-|nt file-|
|00000fb0| 6e 61 6d 65 2d 61 73 2d | 64 69 72 65 63 74 6f 72 |name-as-|director|
|00000fc0| 79 20 67 65 74 65 6e 76 | 20 22 54 4d 50 22 20 22 |y getenv| "TMP" "|
|00000fd0| 54 45 4d 50 22 20 22 22 | 20 22 65 6d 22 20 22 2f |TEMP" ""| "em" "/|
|00000fe0| 74 6d 70 2f 65 6d 61 63 | 73 22 20 74 65 6d 70 20 |tmp/emac|s" temp |
|00000ff0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 c2 |((byte-c|ode "...|
|00001000| 8f 87 22 20 5b 6e 69 6c | 20 28 64 65 6c 65 74 65 |.." [nil| (delete|
|00001010| 2d 66 69 6c 65 20 74 65 | 6d 70 29 20 28 28 66 69 |-file te|mp) ((fi|
|00001020| 6c 65 2d 65 72 72 6f 72 | 29 29 5d 20 33 29 29 20 |le-error|))] 3)) |
|00001030| 6e 69 6c 20 63 73 2d 77 | 20 63 73 2d 72 20 72 65 |nil cs-w| cs-r re|
|00001040| 74 20 66 6f 75 6e 64 20 | 28 62 79 74 65 2d 63 6f |t found |(byte-co|
|00001050| 64 65 20 22 08 09 c2 61 | 1b 89 1c ab 99 c5 0c 40 |de "...a|.......@|
|00001060| 40 0e 06 5c 22 ab 8a c7 | c8 0c 40 41 89 16 09 5c |@..\"...|..@A...\|
|00001070| 22 88 0c 41 89 14 ac 67 | 2a c2 87 22 20 5b 70 72 |"..A...g|*.." [pr|
|00001080| 6f 63 65 73 73 2d 63 6f | 64 69 6e 67 2d 73 79 73 |ocess-co|ding-sys|
|00001090| 74 65 6d 2d 61 6c 69 73 | 74 20 73 79 73 74 65 6d |tem-alis|t system|
|000010a0| 2d 74 79 70 65 20 76 61 | 78 2d 76 6d 73 20 63 61 |-type va|x-vms ca|
|000010b0| 73 65 2d 66 6f 6c 64 2d | 73 65 61 72 63 68 20 61 |se-fold-|search a|
|000010c0| 6c 69 73 74 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |list str|ing-matc|
|000010d0| 68 20 70 72 6f 67 72 61 | 6d 20 74 68 72 6f 77 20 |h progra|m throw |
|000010e0| 66 6f 75 6e 64 20 72 65 | 74 5d 20 35 29 20 66 75 |found re|t] 5) fu|
|000010f0| 6e 63 74 69 6f 6e 70 20 | 63 61 6c 6c 2d 70 72 6f |nctionp |call-pro|
|00001100| 63 65 73 73 2d 72 65 67 | 69 6f 6e 20 70 72 6f 67 |cess-reg|ion prog|
|00001110| 72 61 6d 20 66 69 6e 64 | 2d 63 6f 64 69 6e 67 2d |ram find|-coding-|
|00001120| 73 79 73 74 65 6d 20 63 | 6f 64 69 6e 67 2d 73 79 |system c|oding-sy|
|00001130| 73 74 65 6d 2d 66 6f 72 | 2d 72 65 61 64 20 63 6f |stem-for|-read co|
|00001140| 64 69 6e 67 2d 73 79 73 | 74 65 6d 2d 66 6f 72 2d |ding-sys|tem-for-|
|00001150| 77 72 69 74 65 20 62 69 | 6e 61 72 79 2d 70 72 6f |write bi|nary-pro|
|00001160| 63 65 73 73 2d 6f 75 74 | 70 75 74 20 62 75 66 66 |cess-out|put buff|
|00001170| 65 72 2d 66 69 6c 65 2d | 74 79 70 65 20 77 72 69 |er-file-|type wri|
|00001180| 74 65 2d 72 65 67 69 6f | 6e 20 73 74 61 72 74 20 |te-regio|n start |
|00001190| 65 6e 64 20 73 69 6c 65 | 6e 74 20 64 65 6c 65 74 |end sile|nt delet|
|000011a0| 65 70 20 61 70 70 6c 79 | 20 63 61 6c 6c 2d 70 72 |ep apply| call-pr|
|000011b0| 6f 63 65 73 73 20 62 75 | 66 66 65 72 20 64 69 73 |ocess bu|ffer dis|
|000011c0| 70 6c 61 79 70 20 61 72 | 67 73 5d 20 37 20 28 23 |playp ar|gs] 7 (#|
|000011d0| 24 20 2e 20 32 36 38 30 | 29 5d 29 0a 23 40 36 39 |$ . 2680|)]).#@69|
|000011e0| 35 20 53 74 61 72 74 20 | 61 20 70 72 6f 67 72 61 |5 Start |a progra|
|000011f0| 6d 20 69 6e 20 61 20 73 | 75 62 70 72 6f 63 65 73 |m in a s|ubproces|
|00001200| 73 2e 20 20 52 65 74 75 | 72 6e 20 74 68 65 20 70 |s. Retu|rn the p|
|00001210| 72 6f 63 65 73 73 20 6f | 62 6a 65 63 74 20 66 6f |rocess o|bject fo|
|00001220| 72 20 69 74 2e 0a 41 72 | 67 73 20 61 72 65 20 4e |r it..Ar|gs are N|
|00001230| 41 4d 45 20 42 55 46 46 | 45 52 20 50 52 4f 47 52 |AME BUFF|ER PROGR|
|00001240| 41 4d 20 26 72 65 73 74 | 20 50 52 4f 47 52 41 4d |AM &rest| PROGRAM|
|00001250| 2d 41 52 47 53 0a 4e 41 | 4d 45 20 69 73 20 6e 61 |-ARGS.NA|ME is na|
|00001260| 6d 65 20 66 6f 72 20 70 | 72 6f 63 65 73 73 2e 20 |me for p|rocess. |
|00001270| 20 49 74 20 69 73 20 6d | 6f 64 69 66 69 65 64 20 | It is m|odified |
|00001280| 69 66 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 20 |if neces|sary to |
|00001290| 6d 61 6b 65 20 69 74 20 | 75 6e 69 71 75 65 2e 0a |make it |unique..|
|000012a0| 42 55 46 46 45 52 20 69 | 73 20 74 68 65 20 62 75 |BUFFER i|s the bu|
|000012b0| 66 66 65 72 20 6f 72 20 | 28 62 75 66 66 65 72 2d |ffer or |(buffer-|
|000012c0| 6e 61 6d 65 29 20 74 6f | 20 61 73 73 6f 63 69 61 |name) to| associa|
|000012d0| 74 65 20 77 69 74 68 20 | 74 68 65 20 70 72 6f 63 |te with |the proc|
|000012e0| 65 73 73 2e 0a 20 50 72 | 6f 63 65 73 73 20 6f 75 |ess.. Pr|ocess ou|
|000012f0| 74 70 75 74 20 67 6f 65 | 73 20 61 74 20 65 6e 64 |tput goe|s at end|
|00001300| 20 6f 66 20 74 68 61 74 | 20 62 75 66 66 65 72 2c | of that| buffer,|
|00001310| 20 75 6e 6c 65 73 73 20 | 79 6f 75 20 73 70 65 63 | unless |you spec|
|00001320| 69 66 79 0a 20 61 6e 20 | 6f 75 74 70 75 74 20 73 |ify. an |output s|
|00001330| 74 72 65 61 6d 20 6f 72 | 20 66 69 6c 74 65 72 20 |tream or| filter |
|00001340| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 68 61 6e 64 |function| to hand|
|00001350| 6c 65 20 74 68 65 20 6f | 75 74 70 75 74 2e 0a 20 |le the o|utput.. |
|00001360| 42 55 46 46 45 52 20 6d | 61 79 20 62 65 20 61 6c |BUFFER m|ay be al|
|00001370| 73 6f 20 6e 69 6c 2c 20 | 6d 65 61 6e 69 6e 67 20 |so nil, |meaning |
|00001380| 74 68 61 74 20 74 68 69 | 73 20 70 72 6f 63 65 73 |that thi|s proces|
|00001390| 73 20 69 73 20 6e 6f 74 | 20 61 73 73 6f 63 69 61 |s is not| associa|
|000013a0| 74 65 64 0a 20 77 69 74 | 68 20 61 6e 79 20 62 75 |ted. wit|h any bu|
|000013b0| 66 66 65 72 0a 54 68 69 | 72 64 20 61 72 67 20 69 |ffer.Thi|rd arg i|
|000013c0| 73 20 70 72 6f 67 72 61 | 6d 20 66 69 6c 65 20 6e |s progra|m file n|
|000013d0| 61 6d 65 2e 20 20 49 74 | 20 69 73 20 73 65 61 72 |ame. It| is sear|
|000013e0| 63 68 65 64 20 66 6f 72 | 20 61 73 20 69 6e 20 74 |ched for| as in t|
|000013f0| 68 65 20 73 68 65 6c 6c | 2e 0a 52 65 6d 61 69 6e |he shell|..Remain|
|00001400| 69 6e 67 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |ing argu|ments ar|
|00001410| 65 20 73 74 72 69 6e 67 | 73 20 74 6f 20 67 69 76 |e string|s to giv|
|00001420| 65 20 70 72 6f 67 72 61 | 6d 20 61 73 20 61 72 67 |e progra|m as arg|
|00001430| 75 6d 65 6e 74 73 2e 0a | 49 4e 43 4f 44 45 20 61 |uments..|INCODE a|
|00001440| 6e 64 20 4f 55 54 43 4f | 44 45 20 73 70 65 63 69 |nd OUTCO|DE speci|
|00001450| 66 79 20 74 68 65 20 63 | 6f 64 69 6e 67 2d 73 79 |fy the c|oding-sy|
|00001460| 73 74 65 6d 20 6f 62 6a | 65 63 74 73 20 75 73 65 |stem obj|ects use|
|00001470| 64 20 69 6e 20 69 6e 70 | 75 74 2f 6f 75 74 70 75 |d in inp|ut/outpu|
|00001480| 74 0a 20 66 72 6f 6d 2f | 74 6f 20 74 68 65 20 70 |t. from/|to the p|
|00001490| 72 6f 63 65 73 73 2e 1f | 0a 28 64 65 66 61 6c 69 |rocess..|.(defali|
|000014a0| 61 73 20 27 73 74 61 72 | 74 2d 70 72 6f 63 65 73 |as 'star|t-proces|
|000014b0| 73 20 23 5b 28 6e 61 6d | 65 20 62 75 66 66 65 72 |s #[(nam|e buffer|
|000014c0| 20 70 72 6f 67 72 61 6d | 20 26 72 65 73 74 20 70 | program| &rest p|
|000014d0| 72 6f 67 72 61 6d 2d 61 | 72 67 73 29 20 22 c0 89 |rogram-a|rgs) "..|
|000014e0| 19 1a c0 1b c4 c5 8d 88 | c6 0b 21 ab 86 0b c7 0e |........|..!.....|
|000014f0| 08 5c 22 13 0b 3a ab 88 | 0b 40 12 0b 41 11 aa 89 |.\"..:..|.@..A...|
|00001500| c9 0b 21 ab 84 0b 12 0b | 11 29 0e 5c 6e ae 81 5c |..!.....|.).\n..\|
|00001510| 6e 0e 0b ae 81 09 1e 0b | 1e 5c 6e cc cd 0e 0e 0e |n.......|.\n.....|
|00001520| 0f 0e 08 0e 10 25 2c 87 | 22 20 5b 6e 69 6c 20 63 |.....%,.|" [nil c|
|00001530| 73 2d 77 20 63 73 2d 72 | 20 72 65 74 20 66 6f 75 |s-w cs-r| ret fou|
|00001540| 6e 64 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |nd (byte|-code ".|
|00001550| 09 c2 61 1b 89 1c ab 99 | c5 0c 40 40 0e 06 5c 22 |..a.....|..@@..\"|
|00001560| ab 8a c7 c8 0c 40 41 89 | 16 09 5c 22 88 0c 41 89 |.....@A.|..\"..A.|
|00001570| 14 ac 67 2a c2 87 22 20 | 5b 70 72 6f 63 65 73 73 |..g*.." |[process|
|00001580| 2d 63 6f 64 69 6e 67 2d | 73 79 73 74 65 6d 2d 61 |-coding-|system-a|
|00001590| 6c 69 73 74 20 73 79 73 | 74 65 6d 2d 74 79 70 65 |list sys|tem-type|
|000015a0| 20 76 61 78 2d 76 6d 73 | 20 63 61 73 65 2d 66 6f | vax-vms| case-fo|
|000015b0| 6c 64 2d 73 65 61 72 63 | 68 20 61 6c 69 73 74 20 |ld-searc|h alist |
|000015c0| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 70 72 6f |string-m|atch pro|
|000015d0| 67 72 61 6d 20 74 68 72 | 6f 77 20 66 6f 75 6e 64 |gram thr|ow found|
|000015e0| 20 72 65 74 5d 20 35 29 | 20 66 75 6e 63 74 69 6f | ret] 5)| functio|
|000015f0| 6e 70 20 73 74 61 72 74 | 2d 70 72 6f 63 65 73 73 |np start|-process|
|00001600| 20 70 72 6f 67 72 61 6d | 20 66 69 6e 64 2d 63 6f | program| find-co|
|00001610| 64 69 6e 67 2d 73 79 73 | 74 65 6d 20 63 6f 64 69 |ding-sys|tem codi|
|00001620| 6e 67 2d 73 79 73 74 65 | 6d 2d 66 6f 72 2d 72 65 |ng-syste|m-for-re|
|00001630| 61 64 20 63 6f 64 69 6e | 67 2d 73 79 73 74 65 6d |ad codin|g-system|
|00001640| 2d 66 6f 72 2d 77 72 69 | 74 65 20 61 70 70 6c 79 |-for-wri|te apply|
|00001650| 20 73 74 61 72 74 2d 70 | 72 6f 63 65 73 73 2d 69 | start-p|rocess-i|
|00001660| 6e 74 65 72 6e 61 6c 20 | 6e 61 6d 65 20 62 75 66 |nternal |name buf|
|00001670| 66 65 72 20 70 72 6f 67 | 72 61 6d 2d 61 72 67 73 |fer prog|ram-args|
|00001680| 5d 20 36 20 28 23 24 20 | 2e 20 34 35 37 38 29 5d |] 6 (#$ |. 4578)]|
|00001690| 29 0a 23 40 37 31 31 20 | 41 6c 69 73 74 20 74 6f |).#@711 |Alist to|
|000016a0| 20 64 65 63 69 64 65 20 | 61 20 63 6f 64 69 6e 67 | decide |a coding|
|000016b0| 20 73 79 73 74 65 6d 20 | 74 6f 20 75 73 65 20 66 | system |to use f|
|000016c0| 6f 72 20 61 20 6e 65 74 | 77 6f 72 6b 20 49 2f 4f |or a net|work I/O|
|000016d0| 20 6f 70 65 72 61 74 69 | 6f 6e 2e 0a 54 68 65 20 | operati|on..The |
|000016e0| 66 6f 72 6d 61 74 20 69 | 73 20 28 28 50 41 54 54 |format i|s ((PATT|
|000016f0| 45 52 4e 20 2e 20 56 41 | 4c 29 20 2e 2e 2e 29 2c |ERN . VA|L) ...),|
|00001700| 0a 77 68 65 72 65 20 50 | 41 54 54 45 52 4e 20 69 |.where P|ATTERN i|
|00001710| 73 20 61 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 |s a regu|lar expr|
|00001720| 65 73 73 69 6f 6e 20 6d | 61 74 63 68 69 6e 67 20 |ession m|atching |
|00001730| 61 20 6e 65 74 77 6f 72 | 6b 20 73 65 72 76 69 63 |a networ|k servic|
|00001740| 65 20 6e 61 6d 65 0a 6f | 72 20 69 73 20 61 20 70 |e name.o|r is a p|
|00001750| 6f 72 74 20 6e 75 6d 62 | 65 72 20 74 6f 20 63 6f |ort numb|er to co|
|00001760| 6e 6e 65 63 74 20 74 6f | 2c 0a 56 41 4c 20 69 73 |nnect to|,.VAL is|
|00001770| 20 61 20 63 6f 64 69 6e | 67 20 73 79 73 74 65 6d | a codin|g system|
|00001780| 2c 20 61 20 63 6f 6e 73 | 20 6f 66 20 63 6f 64 69 |, a cons| of codi|
|00001790| 6e 67 20 73 79 73 74 65 | 6d 73 2c 20 6f 72 20 61 |ng syste|ms, or a|
|000017a0| 20 66 75 6e 63 74 69 6f | 6e 20 73 79 6d 62 6f 6c | functio|n symbol|
|000017b0| 2e 0a 49 66 20 56 41 4c | 20 69 73 20 61 20 63 6f |..If VAL| is a co|
|000017c0| 64 69 6e 67 20 73 79 73 | 74 65 6d 2c 20 69 74 20 |ding sys|tem, it |
|000017d0| 69 73 20 75 73 65 64 20 | 66 6f 72 20 62 6f 74 68 |is used |for both|
|000017e0| 20 64 65 63 6f 64 69 6e | 67 20 77 68 61 74 20 72 | decodin|g what r|
|000017f0| 65 63 65 69 76 65 64 0a | 66 72 6f 6d 20 74 68 65 |eceived.|from the|
|00001800| 20 6e 65 74 77 6f 72 6b | 20 73 74 72 65 61 6d 20 | network| stream |
|00001810| 61 6e 64 20 65 6e 63 6f | 64 69 6e 67 20 77 68 61 |and enco|ding wha|
|00001820| 74 20 73 65 6e 74 20 74 | 6f 20 74 68 65 20 6e 65 |t sent t|o the ne|
|00001830| 74 77 6f 72 6b 20 73 74 | 72 65 61 6d 2e 0a 49 66 |twork st|ream..If|
|00001840| 20 56 41 4c 20 69 73 20 | 61 20 63 6f 6e 73 20 6f | VAL is |a cons o|
|00001850| 66 20 63 6f 64 69 6e 67 | 20 73 79 73 74 65 6d 73 |f coding| systems|
|00001860| 2c 20 74 68 65 20 63 61 | 72 20 70 61 72 74 20 69 |, the ca|r part i|
|00001870| 73 20 75 73 65 64 20 66 | 6f 72 20 64 65 63 6f 64 |s used f|or decod|
|00001880| 69 6e 67 2c 0a 61 6e 64 | 20 74 68 65 20 63 64 72 |ing,.and| the cdr|
|00001890| 20 70 61 72 74 20 69 73 | 20 75 73 65 64 20 66 6f | part is| used fo|
|000018a0| 72 20 65 6e 63 6f 64 69 | 6e 67 2e 0a 49 66 20 56 |r encodi|ng..If V|
|000018b0| 41 4c 20 69 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |AL is a |function|
|000018c0| 20 73 79 6d 62 6f 6c 2c | 20 74 68 65 20 66 75 6e | symbol,| the fun|
|000018d0| 63 74 69 6f 6e 20 6d 75 | 73 74 20 72 65 74 75 72 |ction mu|st retur|
|000018e0| 6e 20 61 20 63 6f 64 69 | 6e 67 20 73 79 73 74 65 |n a codi|ng syste|
|000018f0| 6d 0a 6f 72 20 61 20 63 | 6f 6e 73 20 6f 66 20 63 |m.or a c|ons of c|
|00001900| 6f 64 69 6e 67 20 73 79 | 73 74 65 6d 73 20 77 68 |oding sy|stems wh|
|00001910| 69 63 68 20 61 72 65 20 | 75 73 65 64 20 61 73 20 |ich are |used as |
|00001920| 61 62 6f 76 65 2e 0a 0a | 53 65 65 20 61 6c 73 6f |above...|See also|
|00001930| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 60 66 | the fun|ction `f|
|00001940| 69 6e 64 2d 6f 70 65 72 | 61 74 69 6f 6e 2d 63 6f |ind-oper|ation-co|
|00001950| 64 69 6e 67 2d 73 79 73 | 74 65 6d 27 2e 1f 0a 28 |ding-sys|tem'...(|
|00001960| 64 65 66 76 61 72 20 6e | 65 74 77 6f 72 6b 2d 63 |defvar n|etwork-c|
|00001970| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 2d 61 6c 69 |oding-sy|stem-ali|
|00001980| 73 74 20 6e 69 6c 20 28 | 23 24 20 2e 20 35 37 38 |st nil (|#$ . 578|
|00001990| 34 29 29 0a 23 40 37 33 | 32 20 4f 70 65 6e 20 61 |4)).#@73|2 Open a|
|000019a0| 20 54 43 50 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 | TCP con|nection |
|000019b0| 66 6f 72 20 61 20 73 65 | 72 76 69 63 65 20 74 6f |for a se|rvice to|
|000019c0| 20 61 20 68 6f 73 74 2e | 0a 52 65 74 75 72 6e 73 | a host.|.Returns|
|000019d0| 20 61 20 73 75 62 70 72 | 6f 63 65 73 73 2d 6f 62 | a subpr|ocess-ob|
|000019e0| 6a 65 63 74 20 74 6f 20 | 72 65 70 72 65 73 65 6e |ject to |represen|
|000019f0| 74 20 74 68 65 20 63 6f | 6e 6e 65 63 74 69 6f 6e |t the co|nnection|
|00001a00| 2e 0a 49 6e 70 75 74 20 | 61 6e 64 20 6f 75 74 70 |..Input |and outp|
|00001a10| 75 74 20 77 6f 72 6b 20 | 61 73 20 66 6f 72 20 73 |ut work |as for s|
|00001a20| 75 62 70 72 6f 63 65 73 | 73 65 73 3b 20 60 64 65 |ubproces|ses; `de|
|00001a30| 6c 65 74 65 2d 70 72 6f | 63 65 73 73 27 20 63 6c |lete-pro|cess' cl|
|00001a40| 6f 73 65 73 20 69 74 2e | 0a 41 72 67 73 20 61 72 |oses it.|.Args ar|
|00001a50| 65 20 4e 41 4d 45 20 42 | 55 46 46 45 52 20 48 4f |e NAME B|UFFER HO|
|00001a60| 53 54 20 53 45 52 56 49 | 43 45 2e 0a 4e 41 4d 45 |ST SERVI|CE..NAME|
|00001a70| 20 69 73 20 6e 61 6d 65 | 20 66 6f 72 20 70 72 6f | is name| for pro|
|00001a80| 63 65 73 73 2e 20 20 49 | 74 20 69 73 20 6d 6f 64 |cess. I|t is mod|
|00001a90| 69 66 69 65 64 20 69 66 | 20 6e 65 63 65 73 73 61 |ified if| necessa|
|00001aa0| 72 79 20 74 6f 20 6d 61 | 6b 65 20 69 74 20 75 6e |ry to ma|ke it un|
|00001ab0| 69 71 75 65 2e 0a 42 55 | 46 46 45 52 20 69 73 20 |ique..BU|FFER is |
|00001ac0| 74 68 65 20 62 75 66 66 | 65 72 20 28 6f 72 20 62 |the buff|er (or b|
|00001ad0| 75 66 66 65 72 2d 6e 61 | 6d 65 29 20 74 6f 20 61 |uffer-na|me) to a|
|00001ae0| 73 73 6f 63 69 61 74 65 | 20 77 69 74 68 20 74 68 |ssociate| with th|
|00001af0| 65 20 70 72 6f 63 65 73 | 73 2e 0a 20 50 72 6f 63 |e proces|s.. Proc|
|00001b00| 65 73 73 20 6f 75 74 70 | 75 74 20 67 6f 65 73 20 |ess outp|ut goes |
|00001b10| 61 74 20 65 6e 64 20 6f | 66 20 74 68 61 74 20 62 |at end o|f that b|
|00001b20| 75 66 66 65 72 2c 20 75 | 6e 6c 65 73 73 20 79 6f |uffer, u|nless yo|
|00001b30| 75 20 73 70 65 63 69 66 | 79 0a 20 61 6e 20 6f 75 |u specif|y. an ou|
|00001b40| 74 70 75 74 20 73 74 72 | 65 61 6d 20 6f 72 20 66 |tput str|eam or f|
|00001b50| 69 6c 74 65 72 20 66 75 | 6e 63 74 69 6f 6e 20 74 |ilter fu|nction t|
|00001b60| 6f 20 68 61 6e 64 6c 65 | 20 74 68 65 20 6f 75 74 |o handle| the out|
|00001b70| 70 75 74 2e 0a 20 42 55 | 46 46 45 52 20 6d 61 79 |put.. BU|FFER may|
|00001b80| 20 62 65 20 61 6c 73 6f | 20 6e 69 6c 2c 20 6d 65 | be also| nil, me|
|00001b90| 61 6e 69 6e 67 20 74 68 | 61 74 20 74 68 69 73 20 |aning th|at this |
|00001ba0| 70 72 6f 63 65 73 73 20 | 69 73 20 6e 6f 74 20 61 |process |is not a|
|00001bb0| 73 73 6f 63 69 61 74 65 | 64 0a 20 77 69 74 68 20 |ssociate|d. with |
|00001bc0| 61 6e 79 20 62 75 66 66 | 65 72 0a 54 68 69 72 64 |any buff|er.Third|
|00001bd0| 20 61 72 67 20 69 73 20 | 6e 61 6d 65 20 6f 66 20 | arg is |name of |
|00001be0| 74 68 65 20 68 6f 73 74 | 20 74 6f 20 63 6f 6e 6e |the host| to conn|
|00001bf0| 65 63 74 20 74 6f 2c 20 | 6f 72 20 69 74 73 20 49 |ect to, |or its I|
|00001c00| 50 20 61 64 64 72 65 73 | 73 2e 0a 46 6f 75 72 74 |P addres|s..Fourt|
|00001c10| 68 20 61 72 67 20 53 45 | 52 56 49 43 45 20 69 73 |h arg SE|RVICE is|
|00001c20| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 73 65 72 | name of| the ser|
|00001c30| 76 69 63 65 20 64 65 73 | 69 72 65 64 2c 20 6f 72 |vice des|ired, or|
|00001c40| 20 61 6e 20 69 6e 74 65 | 67 65 72 0a 20 73 70 65 | an inte|ger. spe|
|00001c50| 63 69 66 79 69 6e 67 20 | 61 20 70 6f 72 74 20 6e |cifying |a port n|
|00001c60| 75 6d 62 65 72 20 74 6f | 20 63 6f 6e 6e 65 63 74 |umber to| connect|
|00001c70| 20 74 6f 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 | to...(d|efalias |
|00001c80| 27 6f 70 65 6e 2d 6e 65 | 74 77 6f 72 6b 2d 73 74 |'open-ne|twork-st|
|00001c90| 72 65 61 6d 20 23 5b 28 | 6e 61 6d 65 20 62 75 66 |ream #[(|name buf|
|00001ca0| 66 65 72 20 68 6f 73 74 | 20 73 65 72 76 69 63 65 |fer host| service|
|00001cb0| 29 20 22 c0 89 19 1a c0 | 1b c4 c5 8d 88 c6 0b 21 |) ".....|.......!|
|00001cc0| ab 86 0b c7 0e 08 5c 22 | 13 0b 3a ab 88 0b 40 12 |......\"|..:...@.|
|00001cd0| 0b 41 11 aa 89 c9 0b 21 | ab 84 0b 12 0b 11 29 0e |.A.....!|......).|
|00001ce0| 5c 6e ae 81 5c 6e 0e 0b | ae 81 09 1e 0b 1e 5c 6e |\n..\n..|......\n|
|00001cf0| cc 0e 0d 0e 0e 0e 0f 0e | 08 24 2c 87 22 20 5b 6e |........|.$,." [n|
|00001d00| 69 6c 20 63 73 2d 77 20 | 63 73 2d 72 20 72 65 74 |il cs-w |cs-r ret|
|00001d10| 20 66 6f 75 6e 64 20 28 | 62 79 74 65 2d 63 6f 64 | found (|byte-cod|
|00001d20| 65 20 22 08 09 c2 61 c3 | 1c 1d 89 1e 06 ab c5 0e |e "...a.|........|
|00001d30| 06 40 40 89 14 a7 ab 8b | 0e 07 a7 ab af 0c 0e 07 |.@@.....|........|
|00001d40| 61 aa 9c 0c 3b ab a5 0e | 07 3b ab 87 c8 0c 0e 07 |a...;...|.;......|
|00001d50| 5c 22 ac 8e 0e 07 a7 ab | 94 c8 0c c9 0e 07 21 5c |\"......|......!\|
|00001d60| 22 ab 8b ca cb 0e 06 40 | 41 89 16 0c 5c 22 88 0e |"......@|A...\"..|
|00001d70| 06 41 89 16 06 ac 3b 2b | c3 87 22 20 5b 6e 65 74 |.A....;+|.." [net|
|00001d80| 77 6f 72 6b 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |work-cod|ing-syst|
|00001d90| 65 6d 2d 61 6c 69 73 74 | 20 73 79 73 74 65 6d 2d |em-alist| system-|
|00001da0| 74 79 70 65 20 76 61 78 | 2d 76 6d 73 20 6e 69 6c |type vax|-vms nil|
|00001db0| 20 70 61 74 74 65 72 6e | 20 63 61 73 65 2d 66 6f | pattern| case-fo|
|00001dc0| 6c 64 2d 73 65 61 72 63 | 68 20 61 6c 69 73 74 20 |ld-searc|h alist |
|00001dd0| 73 65 72 76 69 63 65 20 | 73 74 72 69 6e 67 2d 6d |service |string-m|
|00001de0| 61 74 63 68 20 6e 75 6d | 62 65 72 2d 74 6f 2d 73 |atch num|ber-to-s|
|00001df0| 74 72 69 6e 67 20 74 68 | 72 6f 77 20 66 6f 75 6e |tring th|row foun|
|00001e00| 64 20 72 65 74 5d 20 35 | 29 20 66 75 6e 63 74 69 |d ret] 5|) functi|
|00001e10| 6f 6e 70 20 6f 70 65 6e | 2d 6e 65 74 77 6f 72 6b |onp open|-network|
|00001e20| 2d 73 74 72 65 61 6d 20 | 73 65 72 76 69 63 65 20 |-stream |service |
|00001e30| 66 69 6e 64 2d 63 6f 64 | 69 6e 67 2d 73 79 73 74 |find-cod|ing-syst|
|00001e40| 65 6d 20 63 6f 64 69 6e | 67 2d 73 79 73 74 65 6d |em codin|g-system|
|00001e50| 2d 66 6f 72 2d 72 65 61 | 64 20 63 6f 64 69 6e 67 |-for-rea|d coding|
|00001e60| 2d 73 79 73 74 65 6d 2d | 66 6f 72 2d 77 72 69 74 |-system-|for-writ|
|00001e70| 65 20 6f 70 65 6e 2d 6e | 65 74 77 6f 72 6b 2d 73 |e open-n|etwork-s|
|00001e80| 74 72 65 61 6d 2d 69 6e | 74 65 72 6e 61 6c 20 6e |tream-in|ternal n|
|00001e90| 61 6d 65 20 62 75 66 66 | 65 72 20 68 6f 73 74 5d |ame buff|er host]|
|00001ea0| 20 35 20 28 23 24 20 2e | 20 36 35 35 34 29 5d 29 | 5 (#$ .| 6554)])|
|00001eb0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+